<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<style>
			div { width:60px; height:60px; margin:5px; float:left; }
	  	</style>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Untitled Document</title>
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.js"></script>
		
	</head>
	<body>
		<span id="result">&nbsp;</span>
					<div style="background-color:blue;" />
					<div style="background-color:rgb(15,99,30);" />
		
		<div style="background-color:#123456;" />
		<div style="background-color:#f11;" />
		
		<script type=text/javascript>
			$("div").click(function () {
			  var color = $(this).css("background-color");
			  $("#result").html("That div is <span style='color:" + 
			                     color + ";'>" + color + "</span>.");
			});
			
			
		</script>
	</body>
</html>
